package com.spvs.job.mapper;

import com.spvs.job.domain.EquipUpkeepRecordDetail;

import java.util.List;

/**
 * 保养计划详情Mapper接口
 *
 * @author supervision
 * @date 2024-06-10
 */
public interface EquipUpkeepRecordDetailMapper
{
    /**
     * 查询保养计划详情
     *
     * @param id 保养计划详情主键
     * @return 保养计划详情
     */
    public EquipUpkeepRecordDetail selectEquipUpkeepRecordDetailById(Long id);

    public List<EquipUpkeepRecordDetail> selectEquipUpkeepRecordDetailByPlanId(Long planId);

    /**
     * 查询保养计划详情列表
     *
     * @param equipUpkeepRecordDetail 保养计划详情
     * @return 保养计划详情集合
     */
    public List<EquipUpkeepRecordDetail> selectEquipUpkeepRecordDetailList(EquipUpkeepRecordDetail equipUpkeepRecordDetail);

    /**
     * 新增保养计划详情
     *
     * @param equipUpkeepRecordDetail 保养计划详情
     * @return 结果
     */
    public int insertEquipUpkeepRecordDetail(EquipUpkeepRecordDetail equipUpkeepRecordDetail);

    /**
     * 修改保养计划详情
     *
     * @param equipUpkeepRecordDetail 保养计划详情
     * @return 结果
     */
    public int updateEquipUpkeepRecordDetail(EquipUpkeepRecordDetail equipUpkeepRecordDetail);

    /**
     * 删除保养计划详情
     *
     * @param id 保养计划详情主键
     * @return 结果
     */
    public int deleteEquipUpkeepRecordDetailById(Long id);

    /**
     * 批量删除保养计划详情
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipUpkeepRecordDetailByIds(Long[] ids);
}
